//#include <SFML/Network.hpp>
//#include <SFML/Window.hpp>
//#include <SFML/Graphics.hpp>
//#include <Windows.h>
//#include <iostream>
//#include <sstream>
//#include <string>
//#include "gameGlobals.h"
//#include "cuiClient.h"
//
//void main()
//{  
//	sf::RenderWindow App(sf::VideoMode(800,600),"Client");
//	App.SetBackgroundColor(sf::Color(0, 0, 0));
//
//	
//	if (!imgPaddle.LoadFromFile("splash.png"))
//	{
//		std::cout << "We gotta problem boss!";
//		exit (0);
//	}
//	
//	sprPaddle.SetImage(imgPaddle);
//	App.Display();
//
//
//
//    sf::IPAddress ServerAddress;
//   
//    std::cout << "Type address or name of the server to connect to : ";
//    std::cin  >> ServerAddress;
//
//
//	
// 
//	Client.SetBlocking(false);
//
//    if (!Client.Connect(1337, ServerAddress))
//	{
//		std::cout << "No go...";
//        return;
//    
//	}
//	std::cout << "Connected to server " << ServerAddress << std::endl;
//
//	while (1)
//	{
//		//if (Client==sf::Socket::Status::NotReady)
//		if (1)
//		{
//			Render(App);
//		}
//		else
//		{
//			GetState();
//		}
//
//	}
//	
//
//	
//
//    char Message[128];
//    std::size_t Received;
//    if (Client.Receive(Message, sizeof(Message), Received) != sf::Socket::Done)
//        return;
//
// 
//    std::cout << "Message received from server : \"" << Message << "\"" << std::endl;
//
//   
//    char ToSend[] = "Hi, I'm a client !";
//
//  
//    if (Client.Send(ToSend, sizeof(ToSend)) != sf::Socket::Done)
//        return;
//    std::cout << "MEssage sent to server : \"" << ToSend << "\"" << std::endl;
//
// 
//    Client.Close();
//}
//
////////////////////////////////////////////////
//// Here is your old code for later purposes //
////////////////////////////////////////////////
//
////
////#include <SFML/Network.hpp>
////#include <SFML/Window.hpp>
////#include <SFML/Graphics.hpp>
////#include <Windows.h>
////#include <iostream>
////#include <sstream>
////#include <string>
////
////std::string IP="";
////sf::String IPtext("","arial.ttf",32.f);
////
////class Convert
////{
////	public:
////		static std::string toString(unsigned int);
////};
////std::string Convert::toString(unsigned int a)
////{
////	std::ostringstream o;
////	o<<a;
////	return o.str();
////}
////void dbg(LPCTSTR string)
////{
////	MessageBox(NULL,string,"Debug",MB_OK);
////}
////bool DoEvents(sf::RenderWindow &App)
////{
////	sf::Event Event;
////	while (App.GetEvent(Event))
////	{
////	    if (Event.Type == sf::Event::Closed)		
////			exit(0);
////		if ((Event.Type == sf::Event::KeyPressed) && (Event.Key.Code == sf::Key::Escape))
////			exit(0);
////		if (Event.Type == sf::Event::TextEntered)
////		{
////			IP+=(char)Event.Text.Unicode;
////		}
////	}
////	return true;
////}
////
////